package com.zlm.common.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 简历完善度
 * @author xhj
 */
public class EmpResumeConstants {

    public static Map<String, Integer> map = new HashMap<>();

    public static final String EMP = "sysEmpDto";

    public static final String RESUME = "empResumeDO";

    public static final String EDUCATIONS = "empUserEducations";

    public static final String EXPERIENCES = "empUserExperiences";

    public static final String INDUSTRY = "industryInfo";

    public static final String AVATAR = "avatar";

    public static final String EMP_NAME = "empName";

    public static final String SEX = "sex";

    public static final String BIRTHDAY = "birthday";

    public static final String EDUCATION = "education";

    public static final String MOBILE = "mobile";

    public static final String IS_WORK = "isWork";

    public static final String PROVINCE = "province";

    public static final String CITY = "city";

    public static final String AREA = "area";

    public static final String EMAIL = "email";

    public static final String MARRIED = "married";

    public static final String INTRODUCE = "introduce";

    public static final String POST_ID = "postId";

    public static final String PROVINCE_NAME = "provinceName";

    public static final String CITY_NAME = "cityName";

    public static final String AREA_NAME = "areaName";

    public static final String SALARY = "salary";

    public static final String RESUME_STYLE = "resumeStyle";

    public static final String SKILLS = "skills";

    public static final String TRAIN_TIME_SECTIONS = "trainTimeSections";

    public static final String SYSTIME_SECTIONS = "sysTimeSections";

    /**
     * 静态块，类加载的时候执行，且仅执行一次
     */
    static {
        map.put(AVATAR, 6);
        map.put(EMP_NAME, 6);
        map.put(SEX, 6);
        map.put(BIRTHDAY, 6);
        map.put(EDUCATION, 6);
        map.put(MOBILE, 6);
        map.put(IS_WORK, 6);
        map.put(PROVINCE, 2);
        map.put(CITY, 2);
        map.put(AREA, 2);
        map.put(EMAIL, 6);
        map.put(MARRIED, 6);
        map.put(INTRODUCE, 6);

        map.put(POST_ID, 3);
        map.put(INDUSTRY, 3);
        map.put(PROVINCE_NAME, 1);
        map.put(CITY_NAME, 1);
        map.put(AREA_NAME, 1);
        map.put(SALARY, 3);
        map.put(RESUME_STYLE, 3);
        map.put(SKILLS, 3);
        map.put(TRAIN_TIME_SECTIONS, 3);
        map.put(SYSTIME_SECTIONS, 3);

        map.put(EDUCATIONS, 5);
        map.put(EXPERIENCES, 5);
    }

    public static Integer getScore(String str) {
        Integer score = map.get(str);
        if (score == null) {
            score = 0;
        }
        return score;
    }
}
